package org.csu.mall.service;

import org.csu.mall.common.UniformResponse;
import org.csu.mall.entity.Category;

import java.util.List;

public interface ICategoryService {
    UniformResponse<List<Category>> getCategory(Integer categoryId);//获取子类
    UniformResponse<List<Integer>> getAllChildrenCategory(Integer categoryId);//获取所有子类
    UniformResponse<List<Category>> getAllCategory();//获取所有分类
    UniformResponse<Category> addCategory(Integer parentId, String categoryName);//添加品类
    UniformResponse<Category> setCategoryName(Integer categoryId,String categoryName);//更新品类名
    UniformResponse  getParentName(Integer categoryId);//获取子类的多级父类
}
